package com.soft.controller;

import com.soft.entity.TOrder;
import com.soft.entity.TOrderitem;
import com.soft.service.TOrderService;
import com.soft.service.TOrderitemService;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import java.util.Date;

/**
 * (TOrderitem)表控制层
 *
 * @author makejava
 * @since 2021-12-26 14:56:39
 */
@RestController
@RequestMapping("tOrderitem")
public class TOrderitemController {
    /**
     * 服务对象
     */
    @Resource
    private TOrderitemService tOrderitemService;
    @Resource
    private TOrderService tOrderService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TOrderitem selectOne(Integer id) {
        return this.tOrderitemService.queryById(id);
    }


}